package gui.edit.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import gui.edit.components.ParamsCheckBoxesPanel;

import javax.swing.JPanel;

import tuio.components.CheckBoxTouch;

/**
 * @author Charles Perin
 * 29 mars 2011
 * LIMSI - INRIA Rennes
 * charles.perin@free.fr
 *
 */
public class ListenerParamCheckBoxChange extends ListenerParamChange implements ActionListener {

	public ListenerParamCheckBoxChange(JPanel parent){
		super(parent);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		CheckBoxTouch source = (CheckBoxTouch)e.getSource();
		((ParamsCheckBoxesPanel)parent).getControler().getParamsControl().modifyParam(((ParamsCheckBoxesPanel)parent).getControler(), source);
	}
}
